Skip to content

fix(runs): count a trial's parts.json and gateway.log in its cache signature - #573

Merged
aitianshi merged 2 commits into
mainfrom
fix/trial-signature-parts-550
Dec 1, 2026
Merged

aitianshi merged 2 commits into
mainfrom
fix/trial-signature-parts-550

Conversation

@aitianshi

Copy link
Copy Markdown
Collaborator

Closes #550

What

  • A running job's cached trial kept its part scores and 429 count when only verifier/parts.json or agent/gateway.log changed: its signature left both out.
  • The signature now covers them, their absence included.
  • An ended job is still answered by its head alone, as documented.

Verified

  • Running job served, t1's two files changed alone: Category a 1.00, b 0.00, no badge before; a 0.00, b 1.00, 429 ×1 after.
  • New test fails on main; with parts.json alone signed, at the gateway.log step.
  • Backend 3557 (3 modules failed under load, each passes alone), routes 938.

Risk

  • An agent appending to its gateway.log as it runs makes its job parse again at each load, unchanged trials reused.
  • A running job with either file parses once more after the upgrade.
  • Still outside the signature: the verifier's report and retried/ tries.
  • Undo: revert.

Agents

  • Claude Code, Opus 5.5

@aitianshi
aitianshi marked this pull request as ready for review December 1, 2026 14:22
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

🟡 PR judge · 5 of 5 yes · #573 ↔ #550

Merge risk 🔴 MAJOR the judge's reading of the diff
Depth 🟠 HIGH the deepest path is app/nullius/workspace.py
Question Verdict
Changes do what the issue asks · 2 of 2 criteria ✅ yes
Issue and pull request describe the same change ✅ yes
Description matches the diff ✅ yes
Diff stays in scope ✅ yes
Risk named in the description ✅ yes
Before and after shown –
Acceptance criteria, 2 of 2 met
# Criterion Verdict
1 A trial's signature covers verifier/parts.json and agent/gateway.log, their absence included ✅ met
2 Changing only one of them changes the next load (test) ✅ met
Checks the script runs itself, 4 of 4 pass
No machine attribution trailer in the commits or the description ✓
New code under app/, docs/, .github/, .agents/ or .claude/ ✓
No Flask import under the backend package ✓
No key-shaped string in the diff ✓

@github-actions github-actions Bot added the needs review Tests pass, no conflict, no verdict on its latest commit label Dec 1, 2026
@aitianshi
aitianshi merged commit 56b39e9 into main Dec 1, 2026
6 checks passed
@aitianshi
aitianshi deleted the fix/trial-signature-parts-550 branch December 1, 2026 14:29
@github-actions github-actions Bot removed the needs review Tests pass, no conflict, no verdict on its latest commit label Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A trial's cached result ignores a change to its verifier/parts.json or agent/gateway.log alone

1 participant